package cs.android.rpc.testserver;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import cs.android.HasContext;
import cs.android.rpc.BitmapRequest;

public class TestBitmapRequest extends TestRequest implements BitmapRequest {

	private final Bitmap bitmap;

	public TestBitmapRequest(HasContext context, int resource) {
		bitmap = BitmapFactory.decodeResource(context.getContext().getResources(), resource);
	}

	@Override public Bitmap getBitmap() {
		return bitmap;
	}

}